package com.mew.provide;

import com.mew.common.rest.sas.*;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

@Component
@FeignClient(value = "mew-kernel-sas")
public interface SasFeignService {

    @PostMapping(value = "/ll/login")
    @ResponseBody
    Integer loginSas(@RequestBody LoginSasRequest request);


    @PostMapping(value = "/ll/logout")
    @ResponseBody
    Integer logoutSas(@RequestBody LogoutSasRequest request);


    @PostMapping(value = "/ee/exit")
    @ResponseBody
    Integer exitGame(@RequestBody ExitGameSasRequest request);

    @PostMapping(value = "/eft/pay")
    @ResponseBody
    public Integer eftPay(@RequestBody EFTSasRequest request);

}
